
#ifndef LOG_H_
#define LOG_H_

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "ThreadMutex.h"

using namespace std;


class Log {
private:
	string className;
	ofstream fs;
	ThreadMutex *mutex;
	string tiempo();
public:
	Log(string className);
	static Log* Instance();
	void openLog(string logFile);
	void info(string datos);
	void error(string datos);
	void closeLog();
};

#endif /* LOG_H_ */
